@zonos/elements 1.3.94 → 1.3.96

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/dist/cjs/{cart-9d0ced11.js → cart-9d9fea0d.js} +10 -8
  2. package/dist/cjs/{createCustomEvent-f6317809.js → createCustomEvent-1ca020ce.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{paypal-a6ddcfaf.js → paypal-d593d2b4.js} +1 -1
  5. package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
  6. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +15 -7
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
  8. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  15. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +12 -4
  16. package/dist/collection/components/store/checkout/stripe.js +10 -8
  17. package/dist/esm/{cart-ef2e2eec.js → cart-a2da2380.js} +10 -8
  18. package/dist/esm/{createCustomEvent-73760da0.js → createCustomEvent-25b6c2a5.js} +1 -1
  19. package/dist/esm/index.js +7 -7
  20. package/dist/esm/{paypal-cce03d02.js → paypal-35d2180d.js} +1 -1
  21. package/dist/esm/zonos-address_7.entry.js +1 -1
  22. package/dist/esm/zonos-cart-items_12.entry.js +15 -7
  23. package/dist/esm/zonos-checkout.entry.js +3 -3
  24. package/dist/esm/zonos-controller.entry.js +1 -1
  25. package/dist/esm/zonos-country-flag.entry.js +1 -1
  26. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  27. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  28. package/dist/esm/zonos-hello.entry.js +1 -1
  29. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  30. package/dist/esm/zonos-notification_3.entry.js +2 -2
  31. package/dist/esm-es5/{cart-ef2e2eec.js → cart-a2da2380.js} +1 -1
  32. package/dist/esm-es5/createCustomEvent-25b6c2a5.js +1 -0
  33. package/dist/esm-es5/index.js +1 -1
  34. package/dist/esm-es5/{paypal-cce03d02.js → paypal-35d2180d.js} +1 -1
  35. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  36. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  37. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  38. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  39. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  40. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  41. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  42. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  43. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  44. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  45. package/dist/scripts/index.js +1 -1
  46. package/dist/scripts/loadZonos.js +1 -1
  47. package/dist/scripts/zonos.js +1 -1
  48. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  49. package/dist/zonos-elements/index.esm.js +1 -1
  50. package/dist/zonos-elements/{p-a6aea068.system.js → p-0942abc5.system.js} +1 -1
  51. package/dist/zonos-elements/{p-55534ab4.entry.js → p-09b53e62.entry.js} +1 -1
  52. package/dist/zonos-elements/{p-dbc57aea.system.entry.js → p-0cbcc7c2.system.entry.js} +1 -1
  53. package/dist/zonos-elements/{p-609209fe.entry.js → p-0e5ff25f.entry.js} +1 -1
  54. package/dist/zonos-elements/{p-d8c3540c.system.entry.js → p-12aafddd.system.entry.js} +1 -1
  55. package/dist/zonos-elements/{p-332ccd38.system.js → p-21b54f6e.system.js} +1 -1
  56. package/dist/zonos-elements/{p-36050826.entry.js → p-23c639f2.entry.js} +1 -1
  57. package/dist/zonos-elements/{p-61c43b0c.system.entry.js → p-33b5241d.system.entry.js} +1 -1
  58. package/dist/zonos-elements/{p-c6950e78.entry.js → p-411d0fd5.entry.js} +1 -1
  59. package/dist/zonos-elements/p-4cf09814.system.entry.js +1 -0
  60. package/dist/zonos-elements/{p-a8fb9ec4.entry.js → p-6d3ec5c6.entry.js} +1 -1
  61. package/dist/zonos-elements/p-9292462d.entry.js +1 -0
  62. package/dist/zonos-elements/{p-3242242f.entry.js → p-98709da2.entry.js} +1 -1
  63. package/dist/zonos-elements/{p-ad8b87ec.js → p-a1eb167f.js} +1 -1
  64. package/dist/zonos-elements/{p-021c2035.js → p-a6b48da3.js} +1 -1
  65. package/dist/zonos-elements/{p-a92ea268.system.entry.js → p-adefe33a.system.entry.js} +1 -1
  66. package/dist/zonos-elements/{p-52b7a342.entry.js → p-b5c0918e.entry.js} +1 -1
  67. package/dist/zonos-elements/{p-205d1fd0.system.entry.js → p-bae94ae4.system.entry.js} +1 -1
  68. package/dist/zonos-elements/{p-c990f553.entry.js → p-bfb7d00a.entry.js} +1 -1
  69. package/dist/zonos-elements/{p-606e0443.system.js → p-c2f05772.system.js} +1 -1
  70. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  71. package/dist/zonos-elements/{p-c6f848d6.system.entry.js → p-ca9c59c5.system.entry.js} +1 -1
  72. package/dist/zonos-elements/{p-517444c0.system.entry.js → p-cded97f2.system.entry.js} +1 -1
  73. package/dist/zonos-elements/{p-7141699d.js → p-d683ffcb.js} +1 -1
  74. package/dist/zonos-elements/{p-e3432dca.system.js → p-e0a3e48b.system.js} +1 -1
  75. package/dist/zonos-elements/{p-d42d729b.system.entry.js → p-e417cdaf.system.entry.js} +1 -1
  76. package/dist/zonos-elements/{p-832535b5.system.entry.js → p-f0b9dd52.system.entry.js} +1 -1
  77. package/dist/zonos-elements/{p-6037f297.entry.js → p-f0fa8e45.entry.js} +1 -1
  78. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  79. package/package.json +1 -1
  80. package/dist/esm-es5/createCustomEvent-73760da0.js +0 -1
  81. package/dist/zonos-elements/p-05172564.entry.js +0 -1
  82. package/dist/zonos-elements/p-40528519.system.entry.js +0 -1
@@ -9495,15 +9495,17 @@ const stripeStoreInitCheckoutSession = async () => {
9495
9495
  return false;
9496
9496
  }
9497
9497
  stripeStore.isFetchingSession = true;
9498
+ const body = {
9499
+ adjustmentsAmount: cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0),
9500
+ cartId: window.Zonos.cartId,
9501
+ currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
9502
+ itemsAmount: total,
9503
+ metadata: [{ key: 'language', value: localizationStore.selectedLocale }],
9504
+ presentmentCountryCode: localizationStore.selectedCountryCode,
9505
+ };
9506
+ handleFetch.log('Checkout session body', 'info', body);
9498
9507
  const { errors, json } = await handleFetch.handleFetch('/api/zonos-elements/create-checkout-session', {
9499
- body: {
9500
- adjustmentsAmount: cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0),
9501
- cartId: window.Zonos.cartId,
9502
- currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
9503
- itemsAmount: total,
9504
- metadata: [{ key: 'language', value: localizationStore.selectedLocale }],
9505
- presentmentCountryCode: localizationStore.selectedCountryCode,
9506
- },
9508
+ body,
9507
9509
  method: 'POST',
9508
9510
  });
9509
9511
  stripeStore.isFetchingSession = false;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-9d0ced11.js');
3
+ const cart = require('./cart-9d9fea0d.js');
4
4
  const zonosStore = require('./zonosStore-a4395972.js');
5
5
  const handleFetch = require('./handleFetch-5a16f2bc.js');
6
6
 
@@ -97,7 +97,7 @@ const getZonosQaUrl = () => {
97
97
  return null;
98
98
  }
99
99
  const qaUrl = extractZonosQaUrl(window.location.href);
100
- const cdnUrl = "https://v1.3.94.js.zonos.com";
100
+ const cdnUrl = "https://v1.3.96.js.zonos.com";
101
101
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
102
102
  if (!qaUrl &&
103
103
  (cdnUrl.includes('test.') ||
@@ -281,10 +281,10 @@ const zonosLoadUrl = (() => {
281
281
  }
282
282
  return null;
283
283
  })();
284
- const ZONOS_URL = "https://v1.3.94.js.zonos.com";
285
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.94";
286
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.94";
287
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.94";
284
+ const ZONOS_URL = "https://v1.3.96.js.zonos.com";
285
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.96";
286
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.96";
287
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.96";
288
288
  const INTER_FONT_URL = 'https://rsms.me';
289
289
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
290
290
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -299,7 +299,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
299
299
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
300
300
  Zonos._paypalMockResponse = null;
301
301
  Zonos.isBigCommerce = false;
302
- Zonos.releaseDate = "1729004720094";
302
+ Zonos.releaseDate = "1729105462742";
303
303
  Zonos.isLegacyCheckout = false;
304
304
  /**
305
305
  * By default, the package will load from npm
@@ -307,7 +307,7 @@ Zonos.isLegacyCheckout = false;
307
307
  Zonos.isNpm = true;
308
308
  Zonos.zonosQaUrl = null;
309
309
  Zonos.zonosQaUrlApi = null;
310
- Zonos.version = `v${"1.3.94"}`;
310
+ Zonos.version = `v${"1.3.96"}`;
311
311
  Zonos.modeAlerted = false;
312
312
  Zonos.cartData = null;
313
313
  Zonos.paypal = null;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-a4395972.js');
4
- const cart = require('./cart-9d0ced11.js');
4
+ const cart = require('./cart-9d9fea0d.js');
5
5
  const handleFetch = require('./handleFetch-5a16f2bc.js');
6
6
  const isDarkColor = require('./isDarkColor-5efc8367.js');
7
7
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-9d0ced11.js');
6
+ const cart = require('./cart-9d9fea0d.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
8
  const handleFetch = require('./handleFetch-5a16f2bc.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-9d0ced11.js');
6
+ const cart = require('./cart-9d9fea0d.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-a6ddcfaf.js');
8
+ const paypal = require('./paypal-d593d2b4.js');
9
9
  const zonosStore = require('./zonosStore-a4395972.js');
10
- const createCustomEvent = require('./createCustomEvent-f6317809.js');
10
+ const createCustomEvent = require('./createCustomEvent-1ca020ce.js');
11
11
  const getBorderRadius = require('./getBorderRadius-5a64574c.js');
12
12
  const handleFetch = require('./handleFetch-5a16f2bc.js');
13
13
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
@@ -1260,7 +1260,11 @@ const ZonosCheckoutFinish = class {
1260
1260
  queryParams.set('orderId', legacyOrderNumber);
1261
1261
  }
1262
1262
  const queryString = queryParams.toString();
1263
- this.redirectToUrl(queryString ? `${redirectUrl}?${queryString}` : redirectUrl);
1263
+ const hasQueryString = redirectUrl.includes('?');
1264
+ this.redirectToUrl(queryString
1265
+ ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
1266
+ `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
1267
+ : redirectUrl);
1264
1268
  }
1265
1269
  switch (successBehavior) {
1266
1270
  case 'REDIRECT_TO_SUCCESS_PAGE': {
@@ -1275,7 +1279,11 @@ const ZonosCheckoutFinish = class {
1275
1279
  }
1276
1280
  if (redirectUrl) {
1277
1281
  const queryString = queryParams.toString();
1278
- this.redirectToUrl(queryString ? `${redirectUrl}?${queryString}` : redirectUrl);
1282
+ const hasQueryString = redirectUrl.includes('?');
1283
+ this.redirectToUrl(queryString
1284
+ ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
1285
+ `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
1286
+ : redirectUrl);
1279
1287
  }
1280
1288
  // If no redirect URL, break and display Zonos success page
1281
1289
  break;
@@ -1453,11 +1461,11 @@ const ZonosCheckoutFinish = class {
1453
1461
  var _a, _b;
1454
1462
  const orderId = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.accountOrderNumber) || getGraphQlShortId((_b = this.order) === null || _b === void 0 ? void 0 : _b.id);
1455
1463
  const isTestMode = createCustomEvent.getIsTestMode();
1456
- return (index.h(index.Host, { key: '87ced5680c0d1bab551332541d74e8e32fd7ed43', class: "zonos--checkout-finish zonos--elements", style: {
1464
+ return (index.h(index.Host, { key: '368e57f2183ea60e890574483cbed36f0ced34a0', class: "zonos--checkout-finish zonos--elements", style: {
1457
1465
  '--border-radius': getBorderRadius.getBorderRadius({
1458
1466
  overrideBorderStyle: this.borderRadius,
1459
1467
  }),
1460
- } }, this.isLoading && (index.h("div", { key: '8063a0e619af1958afc99e4a9aa8bdfeb3f3f896', class: "loading-wrapper" }, index.h("zonos-spinner", { key: '28d4219090e3c9cb0c8a48fa369ace28f74aa938' }))), !this.isLoading && (index.h("div", { key: '094b79103e3a26e57c0d81a1153682649dce693e', class: "zonos--finish-details" }, index.h("div", { key: 'c3a6fe214d5ac5cd58ec533c75e146e573b5da25', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: 'c9e1b5c7ed5be8b6adbd00e5b3896e023271976e', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (index.h("div", { key: '8f32ef78f8e584e43988a12bc94f0d52c0348eba', class: "zonos--order-number" }, "Order #", orderId)), index.h("zonos-text", { key: 'b9aebf9fdfc17d141367deb110440272fed7a6d9', textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), index.h("zonos-button", { key: '25fb15e1e2fb08e2911c787060215f8e1d7c33c6', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: 'd39ae7b5a0889278e0f6a3594ad69dfa0de2159a', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '09e0dfa830577c1eec035f34342528a73bffe944', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: 'eedb6a440713fe5f14a05a747284a2703af1a639', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1468
+ } }, this.isLoading && (index.h("div", { key: 'f9b347d1418f4e29aa648853d3af1c747aed0c8a', class: "loading-wrapper" }, index.h("zonos-spinner", { key: 'f5e742008e4b8b9a55661fd4f81b533f73b85192' }))), !this.isLoading && (index.h("div", { key: '103c20dce88c0ecb820a959013554b0eda769e54', class: "zonos--finish-details" }, index.h("div", { key: 'ca25d2492c4b916b05aff31deb1077d52b90fa00', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '576fca387fdcc4d03539b8167adc1d55e26a4828', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (index.h("div", { key: 'eca45f9016af25c642f1063c54ac3595420f81b6', class: "zonos--order-number" }, "Order #", orderId)), index.h("zonos-text", { key: 'c49b45e67e55168620387a32255b3e16e7d05c73', textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), index.h("zonos-button", { key: '8eb529ff63c274eaf69076f0434cdf84da98ae29', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: '2d9ebe5305b003bb6282f2910a29d58d4af23297', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '2df998e457bb71786b6fb96b97e1672df59acd96', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: '51698824bdcb069ae5e8bf55c4438a8d834aa51e', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1461
1469
  }
1462
1470
  static get assetsDirs() { return ["assets"]; }
1463
1471
  };
@@ -3,10 +3,10 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-9d0ced11.js');
7
- const paypal = require('./paypal-a6ddcfaf.js');
6
+ const cart = require('./cart-9d9fea0d.js');
7
+ const paypal = require('./paypal-d593d2b4.js');
8
8
  const zonosStore = require('./zonosStore-a4395972.js');
9
- const createCustomEvent = require('./createCustomEvent-f6317809.js');
9
+ const createCustomEvent = require('./createCustomEvent-1ca020ce.js');
10
10
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
11
11
  const handleFetch = require('./handleFetch-5a16f2bc.js');
12
12
  const classes = require('./classes-b7918f56.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-9d0ced11.js');
6
+ const cart = require('./cart-9d9fea0d.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const handleFetch = require('./handleFetch-5a16f2bc.js');
9
9
  require('./isDarkColor-5efc8367.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-9d0ced11.js');
6
+ const cart = require('./cart-9d9fea0d.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-5a16f2bc.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-9d0ced11.js');
6
+ const cart = require('./cart-9d9fea0d.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
9
9
  const isDarkColor = require('./isDarkColor-5efc8367.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-9d0ced11.js');
6
+ const cart = require('./cart-9d9fea0d.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
6
  const zonosStore = require('./zonosStore-a4395972.js');
7
- const cart = require('./cart-9d0ced11.js');
7
+ const cart = require('./cart-9d9fea0d.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  const handleFetch = require('./handleFetch-5a16f2bc.js');
10
10
  const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-9d0ced11.js');
6
+ const cart = require('./cart-9d9fea0d.js');
7
7
  const zonosStore = require('./zonosStore-a4395972.js');
8
8
  const ILanguage = require('./ILanguage-98b04442.js');
9
9
  require('./handleFetch-5a16f2bc.js');
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-d56e0a8b.js');
6
6
  const zonosStore = require('./zonosStore-a4395972.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const cart = require('./cart-9d0ced11.js');
8
+ const cart = require('./cart-9d9fea0d.js');
9
9
  const handleFetch = require('./handleFetch-5a16f2bc.js');
10
- const paypal = require('./paypal-a6ddcfaf.js');
10
+ const paypal = require('./paypal-d593d2b4.js');
11
11
  require('./isDarkColor-5efc8367.js');
12
12
  require('./getBorderRadius-5a64574c.js');
13
13
 
@@ -61,7 +61,11 @@ export class ZonosCheckoutFinish {
61
61
  queryParams.set('orderId', legacyOrderNumber);
62
62
  }
63
63
  const queryString = queryParams.toString();
64
- this.redirectToUrl(queryString ? `${redirectUrl}?${queryString}` : redirectUrl);
64
+ const hasQueryString = redirectUrl.includes('?');
65
+ this.redirectToUrl(queryString
66
+ ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
67
+ `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
68
+ : redirectUrl);
65
69
  }
66
70
  switch (successBehavior) {
67
71
  case 'REDIRECT_TO_SUCCESS_PAGE': {
@@ -76,7 +80,11 @@ export class ZonosCheckoutFinish {
76
80
  }
77
81
  if (redirectUrl) {
78
82
  const queryString = queryParams.toString();
79
- this.redirectToUrl(queryString ? `${redirectUrl}?${queryString}` : redirectUrl);
83
+ const hasQueryString = redirectUrl.includes('?');
84
+ this.redirectToUrl(queryString
85
+ ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
86
+ `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
87
+ : redirectUrl);
80
88
  }
81
89
  // If no redirect URL, break and display Zonos success page
82
90
  break;
@@ -254,11 +262,11 @@ export class ZonosCheckoutFinish {
254
262
  var _a, _b;
255
263
  const orderId = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.accountOrderNumber) || getGraphQlShortId((_b = this.order) === null || _b === void 0 ? void 0 : _b.id);
256
264
  const isTestMode = getIsTestMode();
257
- return (h(Host, { key: '87ced5680c0d1bab551332541d74e8e32fd7ed43', class: "zonos--checkout-finish zonos--elements", style: {
265
+ return (h(Host, { key: '368e57f2183ea60e890574483cbed36f0ced34a0', class: "zonos--checkout-finish zonos--elements", style: {
258
266
  '--border-radius': getBorderRadius({
259
267
  overrideBorderStyle: this.borderRadius,
260
268
  }),
261
- } }, this.isLoading && (h("div", { key: '8063a0e619af1958afc99e4a9aa8bdfeb3f3f896', class: "loading-wrapper" }, h("zonos-spinner", { key: '28d4219090e3c9cb0c8a48fa369ace28f74aa938' }))), !this.isLoading && (h("div", { key: '094b79103e3a26e57c0d81a1153682649dce693e', class: "zonos--finish-details" }, h("div", { key: 'c3a6fe214d5ac5cd58ec533c75e146e573b5da25', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'c9e1b5c7ed5be8b6adbd00e5b3896e023271976e', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (h("div", { key: '8f32ef78f8e584e43988a12bc94f0d52c0348eba', class: "zonos--order-number" }, "Order #", orderId)), h("zonos-text", { key: 'b9aebf9fdfc17d141367deb110440272fed7a6d9', textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: '25fb15e1e2fb08e2911c787060215f8e1d7c33c6', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'd39ae7b5a0889278e0f6a3594ad69dfa0de2159a', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '09e0dfa830577c1eec035f34342528a73bffe944', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'eedb6a440713fe5f14a05a747284a2703af1a639', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
269
+ } }, this.isLoading && (h("div", { key: 'f9b347d1418f4e29aa648853d3af1c747aed0c8a', class: "loading-wrapper" }, h("zonos-spinner", { key: 'f5e742008e4b8b9a55661fd4f81b533f73b85192' }))), !this.isLoading && (h("div", { key: '103c20dce88c0ecb820a959013554b0eda769e54', class: "zonos--finish-details" }, h("div", { key: 'ca25d2492c4b916b05aff31deb1077d52b90fa00', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '576fca387fdcc4d03539b8167adc1d55e26a4828', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (h("div", { key: 'eca45f9016af25c642f1063c54ac3595420f81b6', class: "zonos--order-number" }, "Order #", orderId)), h("zonos-text", { key: 'c49b45e67e55168620387a32255b3e16e7d05c73', textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: '8eb529ff63c274eaf69076f0434cdf84da98ae29', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cartStore.step === 'finish' && (h("div", { key: '2d9ebe5305b003bb6282f2910a29d58d4af23297', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '2df998e457bb71786b6fb96b97e1672df59acd96', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '51698824bdcb069ae5e8bf55c4438a8d834aa51e', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
262
270
  }
263
271
  static get is() { return "zonos-checkout-finish"; }
264
272
  static get encapsulation() { return "shadow"; }
@@ -420,15 +420,17 @@ const stripeStoreInitCheckoutSession = async () => {
420
420
  return false;
421
421
  }
422
422
  stripeStore.isFetchingSession = true;
423
+ const body = {
424
+ adjustmentsAmount: cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0),
425
+ cartId: window.Zonos.cartId,
426
+ currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
427
+ itemsAmount: total,
428
+ metadata: [{ key: 'language', value: localizationStore.selectedLocale }],
429
+ presentmentCountryCode: localizationStore.selectedCountryCode,
430
+ };
431
+ log('Checkout session body', 'info', body);
423
432
  const { errors, json } = await handleFetch('/api/zonos-elements/create-checkout-session', {
424
- body: {
425
- adjustmentsAmount: cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0),
426
- cartId: window.Zonos.cartId,
427
- currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
428
- itemsAmount: total,
429
- metadata: [{ key: 'language', value: localizationStore.selectedLocale }],
430
- presentmentCountryCode: localizationStore.selectedCountryCode,
431
- },
433
+ body,
432
434
  method: 'POST',
433
435
  });
434
436
  stripeStore.isFetchingSession = false;
@@ -9493,15 +9493,17 @@ const stripeStoreInitCheckoutSession = async () => {
9493
9493
  return false;
9494
9494
  }
9495
9495
  stripeStore.isFetchingSession = true;
9496
+ const body = {
9497
+ adjustmentsAmount: cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0),
9498
+ cartId: window.Zonos.cartId,
9499
+ currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
9500
+ itemsAmount: total,
9501
+ metadata: [{ key: 'language', value: localizationStore.selectedLocale }],
9502
+ presentmentCountryCode: localizationStore.selectedCountryCode,
9503
+ };
9504
+ log('Checkout session body', 'info', body);
9496
9505
  const { errors, json } = await handleFetch('/api/zonos-elements/create-checkout-session', {
9497
- body: {
9498
- adjustmentsAmount: cartStore.adjustments.reduce((prev, adj) => prev + adj.amount, 0),
9499
- cartId: window.Zonos.cartId,
9500
- currency: ((_a = cartStore.items.find(Boolean)) === null || _a === void 0 ? void 0 : _a.currencyCode) || '',
9501
- itemsAmount: total,
9502
- metadata: [{ key: 'language', value: localizationStore.selectedLocale }],
9503
- presentmentCountryCode: localizationStore.selectedCountryCode,
9504
- },
9506
+ body,
9505
9507
  method: 'POST',
9506
9508
  });
9507
9509
  stripeStore.isFetchingSession = false;
@@ -1,4 +1,4 @@
1
- import { d as cartStore, l as localizationStore } from './cart-ef2e2eec.js';
1
+ import { d as cartStore, l as localizationStore } from './cart-a2da2380.js';
2
2
  import { z as zonosStore } from './zonosStore-0dc7a947.js';
3
3
  import { h as handleFetch } from './handleFetch-ce924688.js';
4
4
 
package/dist/esm/index.js CHANGED
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
94
94
  return null;
95
95
  }
96
96
  const qaUrl = extractZonosQaUrl(window.location.href);
97
- const cdnUrl = "https://v1.3.94.js.zonos.com";
97
+ const cdnUrl = "https://v1.3.96.js.zonos.com";
98
98
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
99
99
  if (!qaUrl &&
100
100
  (cdnUrl.includes('test.') ||
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
278
278
  }
279
279
  return null;
280
280
  })();
281
- const ZONOS_URL = "https://v1.3.94.js.zonos.com";
282
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.94";
283
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.94";
284
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.94";
281
+ const ZONOS_URL = "https://v1.3.96.js.zonos.com";
282
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.96";
283
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.96";
284
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.96";
285
285
  const INTER_FONT_URL = 'https://rsms.me';
286
286
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
287
287
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
296
296
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
297
297
  Zonos._paypalMockResponse = null;
298
298
  Zonos.isBigCommerce = false;
299
- Zonos.releaseDate = "1729004720094";
299
+ Zonos.releaseDate = "1729105462742";
300
300
  Zonos.isLegacyCheckout = false;
301
301
  /**
302
302
  * By default, the package will load from npm
@@ -304,7 +304,7 @@ Zonos.isLegacyCheckout = false;
304
304
  Zonos.isNpm = true;
305
305
  Zonos.zonosQaUrl = null;
306
306
  Zonos.zonosQaUrlApi = null;
307
- Zonos.version = `v${"1.3.94"}`;
307
+ Zonos.version = `v${"1.3.96"}`;
308
308
  Zonos.modeAlerted = false;
309
309
  Zonos.cartData = null;
310
310
  Zonos.paypal = null;
@@ -1,5 +1,5 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-0dc7a947.js';
2
- import { d as cartStore, u as stripeStoreHandleInventoryCheck, t as translate, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-ef2e2eec.js';
2
+ import { d as cartStore, u as stripeStoreHandleInventoryCheck, t as translate, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-a2da2380.js';
3
3
  import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-ce924688.js';
4
4
  import { t as tinycolor } from './isDarkColor-b3afa948.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { j as stripeStore, P as getFallbackDefaultCountryCode, l as localizationStore, t as translate } from './cart-ef2e2eec.js';
2
+ import { j as stripeStore, P as getFallbackDefaultCountryCode, l as localizationStore, t as translate } from './cart-a2da2380.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
4
  import { a as logError, l as log } from './handleFetch-ce924688.js';
5
5
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-86b8247e.js';
2
- import { d as cartStore, t as translate, E as currencyFormat, F as cartStoreHasOneEligibleItem, G as stripeStoreApplyPromoCode, H as stripeStoreRemovePromoCode, w as stripeStoreReset, j as stripeStore, I as stripeStoreRetrievePayment, J as stripeStoreMessageBasedOnStatus, K as stripeStoreResetPromoCode, l as localizationStore, L as stripeStoreTranslateAddressToLatin, M as cartStoreUpdateSelectedShippingOption, N as cartStoreGetShippingTransitInfo, O as sortServiceLevelOptionsByAmount } from './cart-ef2e2eec.js';
2
+ import { d as cartStore, t as translate, E as currencyFormat, F as cartStoreHasOneEligibleItem, G as stripeStoreApplyPromoCode, H as stripeStoreRemovePromoCode, w as stripeStoreReset, j as stripeStore, I as stripeStoreRetrievePayment, J as stripeStoreMessageBasedOnStatus, K as stripeStoreResetPromoCode, l as localizationStore, L as stripeStoreTranslateAddressToLatin, M as cartStoreUpdateSelectedShippingOption, N as cartStoreGetShippingTransitInfo, O as sortServiceLevelOptionsByAmount } from './cart-a2da2380.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { s as submitGtag, a as paypalStore, b as paypalStoreReset, i as isContrastColor } from './paypal-cce03d02.js';
4
+ import { s as submitGtag, a as paypalStore, b as paypalStoreReset, i as isContrastColor } from './paypal-35d2180d.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
6
- import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-73760da0.js';
6
+ import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-25b6c2a5.js';
7
7
  import { g as getBorderRadius } from './getBorderRadius-cff1e39b.js';
8
8
  import { h as handleFetch, s as sendErrorLog } from './handleFetch-ce924688.js';
9
9
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
@@ -1256,7 +1256,11 @@ const ZonosCheckoutFinish = class {
1256
1256
  queryParams.set('orderId', legacyOrderNumber);
1257
1257
  }
1258
1258
  const queryString = queryParams.toString();
1259
- this.redirectToUrl(queryString ? `${redirectUrl}?${queryString}` : redirectUrl);
1259
+ const hasQueryString = redirectUrl.includes('?');
1260
+ this.redirectToUrl(queryString
1261
+ ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
1262
+ `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
1263
+ : redirectUrl);
1260
1264
  }
1261
1265
  switch (successBehavior) {
1262
1266
  case 'REDIRECT_TO_SUCCESS_PAGE': {
@@ -1271,7 +1275,11 @@ const ZonosCheckoutFinish = class {
1271
1275
  }
1272
1276
  if (redirectUrl) {
1273
1277
  const queryString = queryParams.toString();
1274
- this.redirectToUrl(queryString ? `${redirectUrl}?${queryString}` : redirectUrl);
1278
+ const hasQueryString = redirectUrl.includes('?');
1279
+ this.redirectToUrl(queryString
1280
+ ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
1281
+ `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
1282
+ : redirectUrl);
1275
1283
  }
1276
1284
  // If no redirect URL, break and display Zonos success page
1277
1285
  break;
@@ -1449,11 +1457,11 @@ const ZonosCheckoutFinish = class {
1449
1457
  var _a, _b;
1450
1458
  const orderId = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.accountOrderNumber) || getGraphQlShortId((_b = this.order) === null || _b === void 0 ? void 0 : _b.id);
1451
1459
  const isTestMode = getIsTestMode();
1452
- return (h(Host, { key: '87ced5680c0d1bab551332541d74e8e32fd7ed43', class: "zonos--checkout-finish zonos--elements", style: {
1460
+ return (h(Host, { key: '368e57f2183ea60e890574483cbed36f0ced34a0', class: "zonos--checkout-finish zonos--elements", style: {
1453
1461
  '--border-radius': getBorderRadius({
1454
1462
  overrideBorderStyle: this.borderRadius,
1455
1463
  }),
1456
- } }, this.isLoading && (h("div", { key: '8063a0e619af1958afc99e4a9aa8bdfeb3f3f896', class: "loading-wrapper" }, h("zonos-spinner", { key: '28d4219090e3c9cb0c8a48fa369ace28f74aa938' }))), !this.isLoading && (h("div", { key: '094b79103e3a26e57c0d81a1153682649dce693e', class: "zonos--finish-details" }, h("div", { key: 'c3a6fe214d5ac5cd58ec533c75e146e573b5da25', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'c9e1b5c7ed5be8b6adbd00e5b3896e023271976e', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (h("div", { key: '8f32ef78f8e584e43988a12bc94f0d52c0348eba', class: "zonos--order-number" }, "Order #", orderId)), h("zonos-text", { key: 'b9aebf9fdfc17d141367deb110440272fed7a6d9', textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: '25fb15e1e2fb08e2911c787060215f8e1d7c33c6', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cartStore.step === 'finish' && (h("div", { key: 'd39ae7b5a0889278e0f6a3594ad69dfa0de2159a', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '09e0dfa830577c1eec035f34342528a73bffe944', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'eedb6a440713fe5f14a05a747284a2703af1a639', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1464
+ } }, this.isLoading && (h("div", { key: 'f9b347d1418f4e29aa648853d3af1c747aed0c8a', class: "loading-wrapper" }, h("zonos-spinner", { key: 'f5e742008e4b8b9a55661fd4f81b533f73b85192' }))), !this.isLoading && (h("div", { key: '103c20dce88c0ecb820a959013554b0eda769e54', class: "zonos--finish-details" }, h("div", { key: 'ca25d2492c4b916b05aff31deb1077d52b90fa00', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '576fca387fdcc4d03539b8167adc1d55e26a4828', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (h("div", { key: 'eca45f9016af25c642f1063c54ac3595420f81b6', class: "zonos--order-number" }, "Order #", orderId)), h("zonos-text", { key: 'c49b45e67e55168620387a32255b3e16e7d05c73', textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { key: '8eb529ff63c274eaf69076f0434cdf84da98ae29', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cartStore.step === 'finish' && (h("div", { key: '2d9ebe5305b003bb6282f2910a29d58d4af23297', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '2df998e457bb71786b6fb96b97e1672df59acd96', backgroundColor: "gray-0", buttonColor: "gray-1200", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '51698824bdcb069ae5e8bf55c4438a8d834aa51e', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1457
1465
  }
1458
1466
  static get assetsDirs() { return ["assets"]; }
1459
1467
  };
@@ -1,8 +1,8 @@
1
1
  import { r as registerInstance, h, H as Host, F as Fragment } from './index-86b8247e.js';
2
- import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as getZCountryUrlParam, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreHandleInventoryCheck, v as stripeStoreConfirmPayment, w as stripeStoreReset, x as localizationStoreOnUpdate } from './cart-ef2e2eec.js';
3
- import { s as submitGtag, p as paypalInitScript } from './paypal-cce03d02.js';
2
+ import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, n as cartStoreUpdateToErrorState, t as translate, o as getZCountryUrlParam, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreHandleInventoryCheck, v as stripeStoreConfirmPayment, w as stripeStoreReset, x as localizationStoreOnUpdate } from './cart-a2da2380.js';
3
+ import { s as submitGtag, p as paypalInitScript } from './paypal-35d2180d.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-0dc7a947.js';
5
- import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-73760da0.js';
5
+ import { t as trackConversionEvent, c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-25b6c2a5.js';
6
6
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
7
7
  import { l as log, a as logError, s as sendErrorLog, b as allLogs } from './handleFetch-ce924688.js';
8
8
  import { c as classes } from './classes-0d95c529.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
2
- import { y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-ef2e2eec.js';
2
+ import { y as isValidSelector, j as stripeStore, z as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-a2da2380.js';
3
3
  import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
4
4
  import { h as handleFetch, a as logError, l as log } from './handleFetch-ce924688.js';
5
5
  import './isDarkColor-b3afa948.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { l as localizationStore } from './cart-ef2e2eec.js';
2
+ import { l as localizationStore } from './cart-a2da2380.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import './handleFetch-ce924688.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-ef2e2eec.js';
2
+ import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './cart-a2da2380.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
4
4
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
5
5
  import { i as isDarkColor } from './isDarkColor-b3afa948.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-86b8247e.js';
2
- import { t as translate, l as localizationStore, E as currencyFormat } from './cart-ef2e2eec.js';
2
+ import { t as translate, l as localizationStore, E as currencyFormat } from './cart-a2da2380.js';
3
3
  import { z as zonosStore } from './zonosStore-0dc7a947.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
2
  import { _ as _root, e as _baseGetTag, i as isObjectLike_1, f as isObject_1, z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-0dc7a947.js';
3
- import { l as localizationStore, y as isValidSelector, t as translate, o as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-ef2e2eec.js';
3
+ import { l as localizationStore, y as isValidSelector, t as translate, o as getZCountryUrlParam, A as setZCountryUrlParam, B as currencyDisplay, C as currencyConvertAndFormat, D as currencyConvert, E as currencyFormat } from './cart-a2da2380.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import { h as handleFetch, a as logError, l as log } from './handleFetch-ce924688.js';
6
6
  import { g as getHasMoreSpaceOnRight } from './getHasMoreSpaceOnRight-70eb913a.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-ef2e2eec.js';
2
+ import { Q as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-a2da2380.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
4
4
  import { l as languages } from './ILanguage-cd6acb72.js';
5
5
  import './handleFetch-ce924688.js';
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-86b8247e.js';
2
2
  import { d as zonosStoreFontFamily } from './zonosStore-0dc7a947.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { j as stripeStore } from './cart-ef2e2eec.js';
4
+ import { j as stripeStore } from './cart-a2da2380.js';
5
5
  import { a as logError, l as log } from './handleFetch-ce924688.js';
6
- import { c as paypalStoreInitButtons } from './paypal-cce03d02.js';
6
+ import { c as paypalStoreInitButtons } from './paypal-35d2180d.js';
7
7
  import './isDarkColor-b3afa948.js';
8
8
  import './getBorderRadius-cff1e39b.js';
9
9